package com.fishing.service.impl;

import javax.servlet.http.HttpServletRequest;

import com.fishing.service.ZoneInformation;

import QL.ButlerExcelGetListRequest;
import QL.ButlerExcelGetListResponse;
import QL.QLClient;

public class ZoneInformationImpl implements ZoneInformation{
	private static QLClient client = new QLClient();

	@Override
	public String OSSUrl(HttpServletRequest request) {
		//获取OSS地址
		ButlerExcelGetListRequest req = new ButlerExcelGetListRequest();
		req.Key = "a";
		req.ZoneId = (Integer)request.getSession().getAttribute("ZoneId");
		ButlerExcelGetListResponse rsp = new ButlerExcelGetListResponse();
		if (req.ZoneId < 0)
			client.ServerUrl = "http://api2.qq1798.com:8000/router/rest";
		client.Execute(req, rsp);
		String str = rsp.OssUrl;
		return str;
	}

}
